package jbpmguice.workflow;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class TestAction implements ActionHandler {

    private static final long serialVersionUID = -5765720435694150494L;

    private String beanProperty;

    int executionCounter;

    public TestAction() {
        super();
    }

    public String getBeanProperty() {
        return beanProperty;
    }

    public void setBeanProperty(String beanProperty) {
        this.beanProperty = beanProperty;
    }

    public int getExecutionCounter() {
        return executionCounter;
    }


    public void execute(ExecutionContext executionContext) throws Exception {
        executionCounter++;
    }
}
